package com.threeonemeeting.listcache;

import android.view.View;
import android.widget.TextView;

import com.threeonemeeting.R;

public class EnrollUserInfoCache {

	private View baseView;
	private int nMeetingId;
	private String strUserName;
	private String strMobileNo;

	private TextView userNameTextView;
	private TextView userMobileNoTextView;

	public EnrollUserInfoCache(View baseView, int nMeetingId, String strUserName,
			String strUserMobileNo) {
		this.baseView = baseView;
		this.nMeetingId = nMeetingId;
		this.strUserName = strUserName;
		this.strMobileNo = strUserMobileNo;
	}

	public int getMeetingId() {
		return this.nMeetingId;
	}

	public String getUserName() {
		return this.strUserName;
	}

	public String getUserMobileNo() {
		return this.strMobileNo;
	}

	public TextView getUserNameTextView() {
		if (userNameTextView == null) {
			userNameTextView = (TextView) baseView.findViewById(R.id.user_name);
		}
		return userNameTextView;
	}

	public TextView getUserMobileNoTextView() {
		if (userMobileNoTextView == null) {
			userMobileNoTextView = (TextView) baseView
					.findViewById(R.id.user_mobile_no);
		}
		return userMobileNoTextView;
	}
}
